  public int colorpicker(int initialColor) {		
		//     initialColor is the initially-selected color to be shown in the rectangle on the left of the arrow.
		//usedColors is an ArrayList<String> populated with colors every time a new selection is made
//		e.g
//		String newColor = String.format("#%06X", 0xFFFFFF & returncolor);
//		usedColors.add(addColor);
//		call dialog as below so as to show the immediate color selected before instead of going back to the default
//		colorpicker(returncolor);
		AmbilWarnaDialog dialog = new AmbilWarnaDialog(this, initialColor, usedColors, new OnAmbilWarnaListener() {
			// Executes, when user click Cancel button
			@Override
			public void onCancel(AmbilWarnaDialog dialog){

			}  

			// Executes, when user click OK button
			@Override
			public void onOk(AmbilWarnaDialog dialog, int color) {
				myColor = String.format("#%06X", 0xFFFFFF & color);
				returncolor = color;
				Log.d("Color chosen: ", "is "+myColor);
				Toast.makeText(getApplicationContext(), "painting with "+myColor, Toast.LENGTH_SHORT).show();
			}
		}); 
		dialog.show();
		Toast.makeText(getApplicationContext(), "Please choose color", Toast.LENGTH_LONG).show();
		saveMethod();
		return returncolor;		
	}